home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Patches 1995 September
/
SGI IRIX Patches 1995 Sep.iso
/
5.3_patches
/
patchSG0000676
/
patchSG0000676.idb
/
var
/
sysgen
/
mtune
/
kernel.z
/
kernel
Wrap
Text File
|
1995-09-07
|
13KB
|
388 lines
**************************************************************************
* Copyright 1990-1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
**************************************************************************
*
*#ident "$Revision: 1.61 $"
* This is a read-only file. User-specified tunables are stored
* in var/sysgen/stune file.
*
* kernel
*
* tunables that turn on/off features
*
* nosuidshells: to allow setuid shells set to 0
* restricted_chown = 1 bsd style chown(2), only super-user can give away files
* restricted_chown = 0 sysV style chown(2), non super-user can give away files
* posix_tty_default = 0 ==> run our default line discipline and settings
* posix_tty_default = 1 ==> match tty parameters/POSIX test assumptions
* use_old_serialnum = 1 ==> Force the kernel to use the old method of
* calculating a 32-bit serial number for sysinfo -s.
* This variable only affects Onyx/Challenge L/XL systems.
* reboot_on_panic = -1 ==> Use machine dependent reboot after panic semantics.
* reboot_on_panic = 0 ==> Do not reboot the system after a panic (wait for
* user to hit the system reset button).
* reboot_on_panic = 1 ==> Automatically reboot the system after a panic.
*
* reset_limits_on_exec = 1 ==> Reset rlimits on exec of processes that are
* setuid to root to prevent unprivileged processes from
* enforcing resource limitations on setuid/setgid procs.
* reset_limits_on_exec = 0 ==> Don't reset limits on execs of setuid procs.
*
* tty_auto_strhold = 1 ==> automatically sets STRHOLD on ttys/ptys whenever
* the line discipline is in canonical & echo mode and
* automatically clears STRHOLD otherwise.
* tty_auto_strhold = 0 ==> STRHOLD on ptys/ttys is entirely under user control.
switch: static
* name default minimum maximum
nosuidshells 1
restricted_chown 0
posix_tty_default 0
use_old_serialnum 0
reboot_on_panic -1
reset_limits_on_exec 1
switch: run
* name default minimum maximum
tty_auto_strhold 0
* miscellaneous dynamic tuneables
*
* r4k_div_patch = 1 turn on exec patch code for binaries that have been
* processed with r4kpp for the divide in branch delay slot
* problem that occurs on R4000 SC rev 2.2 and 3.0 parts.
* corepluspid = 1 name core file as "core.pid"
* panic_on_sbe = 1 special factory debugging mode
* ecc_recover_enable = 0 ==> don't attempt to recover from multibit errors
* > 0 ==> attempt to recover from some cases of multibit
* errors, but no more than 32 errors every
* "ecc_recover_enable" seconds (default 60 secs)
* munlddelay = 5 timeout for auto-unload for loadable modules
* dump_all_pages = 1 ==> dump kernel and user and free pages during panic
*
misc: run
* name default minimum maximum
r4k_div_patch 0
corepluspid 0
panic_on_sbe 0
ecc_recover_enable 60
module_unld_delay 5 0
dump_all_pages 1
*
* tunables that set the limit
*
* ncargs is max # bytes of arguments passed during an exec(2)
* shlbmax : Maximum number of libraries that can be
* attached to a process at one time.
* maxwatchpoints: maximum watchpoints per process
* nprofile: number of disjoint text spaces to be profiled
* maxsymlinks is the maximum number of symlinks expanded in an pathname.
* reserve_ncallout: number of reserved callouts
* maxup: the maximum number of processes per user, should always smaller than
* nproc
* vnode_free_ratio: proportion of free vnodes to vnodes in use.
*
* reserve_ncallout auto-config: max(5,numcpus)
* maxup limit: nproc - 20
* vnode_free_ratio auto-config: 2 (to one)
* bmappedpct: the maximum % of syssegsz that is allowed to be mapped in the
* buffer cache. If the value is 100, then the feature that limits the
* reclaimation of k2 space is disabled.
limits: run
* name default minimum maximum
ncargs 20480 5120 262144
shlbmax 8 3 32
maxwatchpoints 100 1 1000
nprofile 100 100 200
maxsymlinks 30 0 50
reserve_ncallout 0 0 50 /* auto-config */
maxup 150 15 10000
vnode_free_ratio 2 1 16
bmappedpct 50 30 100
*
* tunables for resource limit
* 'cur' may be changed via any shell or setrlimit
* For limits specified as ints 0x7fffffff implies no
* limit, while for limits specified as long longs 0x7fffffffffffffff
* implies no limit.
*
* Note: rlimit_nofile_max must not be set to 0x7fffffff (or unreasonably
* large) since many daemons/programs use rlimit_nofile_max as an indication
* of how many file descriptors to close when they want to close them all.
*
resource: static
* name default minimum maximum
rlimit_cpu_cur 0x7fffffff 0 0x7fffffff
rlimit_cpu_max 0x7fffffff 0 0x7fffffff
rlimit_fsize_cur 0xffffffffff 0 0xffffffffff ll
rlimit_fsize_max 0xffffffffff 0 0xffffffffff ll
rlimit_data_cur 0x20000000 0 0x7fffffff
rlimit_data_max 0x20000000 0 0x7fffffff
rlimit_stack_cur 0x04000000 0 0x7fffffff
rlimit_stack_max 0x20000000 0 0x7fffffff
rlimit_core_cur 0x7fffffff 0 0x7fffffff
rlimit_core_max 0x7fffffff 0 0x7fffffff
rlimit_nofile_cur 200 20
rlimit_nofile_max 2500 0 0x7fffffff
rlimit_vmem_cur 0x20000000 0 0x7fffffff
rlimit_vmem_max 0x20000000 0 0x7fffffff
rlimit_rss_cur 0 0 0x7fffffff /* auto-config */
rlimit_rss_max 0x20000000 0 0x7fffffff
*
* tunables that depend on nproc
*
* nproc: maximum number of processes
* ndquot: maximum number of file system quota structures
* ncallout: initial # of callouts -- used to implement timeout calls
* callout_himark: high water mark of callouts
* ncsize: directory-name lookup cache size
* ngroups_max: maximum number of groups to which user can belong
*
* nproc auto-config: 30 + KB(mem)/240
* ndquot auto-config: 200 + 2*nproc
* ncsize auto-config: 200 + 2*nproc
* ncallout auto-config: nproc/2
*
numproc: static
* name default minimum maximum
nproc 0 30 10000 /* auto-config */
ndquot 0 268 6200 /* auto-config */
callout_himark 0 42 10000 /* auto-config */
ncallout 0 20 5000 /* auto-config */
ncsize 0 268 6200 /* auto-config */
ngroups_max 16 0 32
*
* The following is for STREAMS.
*
streams: static
* name default minimum maximum
nstrpush 9 9 10
strmsgsz 0x8000
strctlsz 1024
streams: run
* name default minimum maximum
strholdtime 50 0 1000
*
* cpu actions -- interprocessor communication blocks
* nactions: number of action block, autoconfigure if 0
*
* nactions auto-config: max((maxcpus+60), (maxcpus*(maxcpus/2)))
*
actions: static
* name default minimum maximum
nactions 0 60 200 /* auto-config */
*
* tunables for queued signals
*
* maxsigq: used by sigqsetup() - Posix.4 required at least 32
* since svr4 SA_SIGINFO signals also share this, make maxsigq >= NSIG+32
* results in
* sysconf(SIGQUEUE_MAX) = maxsigq - NSIG
*
signals: run
* name default minimum maximum
maxsigq 96 96
*
* tunables for timer
*
* fasthz: profiling/fast itimer clock speed.
*
* itimer_on_clkcpu = 1 10 ms itimer request is queued on the clock processoro
* itimer_on_clkcpu = 0 0 ms itimer request is queued on the runing processor
* If a process does a setitimer then uses gettimeofday() to compare the
* accuracy of the itimer delivery then itimer_on_clkcpu should be set.
* If on the otherhand, itimer request is used to implement a user frequency
* based scheduler then itimer_on_clkcpu should be 0.
*
* timetrim: The clock is adjusted by this signed number of nanoseconds
* every second. It is limited to 3 milliseconds or 0.3% in clock.c.
* Timed(1M) and timeslave(1M) put suggested values in /usr/adm/SYSLOG.
*
timer: static
* name default minimum maximum
fasthz 1000 500 2500
itimer_on_clkcpu 0
timetrim 0
*
* tunables for memory size
*
* maxpmem: the maximum physical memory to use, if maxpmem = 0,
* then use all available physical memory.
* syssegsz: max pages of dynamic system memory,
* maxdmasz: max dma transfer (in pages), must be no more than syssegsz / 2
* and less than maxpmem
* maxpglst: maximum number of pages that can be held in each
* of the pager's pageout queues
* maxphyscolors: max number of page colors (cache entries),
* must be a power of two
*
* syssegsz auto-config: min(max(KB(mem)/8,0x2000),0x10000)
* maxdmasz auto-config: syssegsz/2
* maxpglst auto-config: min(max(KB(mem)/2048,100)+(numcpus-1)*16,1000)
* maxphyscolors auto-config: 0x1000
*
memsize: static
* name default minimum maximum
maxpmem 0 1024
syssegsz 0 0x2000 0x10000 /* auto-config */
maxdmasz 1024 1024 syssegsz /* auto-config */
maxpglst 0 50 1000 /* auto-config */
maxphyscolors 0 0x20 0x1000 /* auto-config */
*
* Tuneable Paging parameters
*
* gpgslo: If freemem < gpgslo, then start to steal pages from processes.
* gpgshi: Once we start to steal pages, don't stop until freemem > gtpgshi.
* gpgsmsk: Mask used by getpages to determine whether a page is stealable.
* maxsc: The maximum number of pages which will be swapped out in a single
* operation.
* maxfc: The maximum number of pages which will be saved up and freed at once.
* maxdc: The maximum number of pages which will be saved up and written to
* disk (mappd files) at once.
* maxumem: Obsolete - see RLIMIT_VMEM
* minarmem: The minimum available resident (not swapable) memory to maintain in
* order to avoid deadlock.
* minasmem: The minimum available swapable memory to maintain in order to avoid
* deadlock.
* maxlkmem: The maximum amount of lockable pages per process
* tlbdrop: Number of ticks before a procs wired entries are flushed
* rsshogfrac: Fraction of memory RSS hogs can use
* rsshogslop: # pages excess of RSS before slow down process
* dwcluster: Maximum number of delayed write pages to cluster in each push.
* bdflushr: The rate at which bdflush is run, in seconds.
* autoup: The age a delayed-write buffer must be, in seconds,
* before bdflush will write it out.
* vfs_syncr: The rate at which vfs_syncr is run, in seconds.
*
paging: run
* name default minimum maximum
gpgslo 0
gpgshi 0 30
gpgsmsk 2 0 7
maxsc 0 8 maxpglst
maxfc 0 50 maxpglst
maxdc 0 1 maxpglst
bdflushr 5 1 31536000
vfs_syncr 30 1 31536000
minarmem 0
minasmem 0
maxlkmem 2000
tlbdrop 100
rsshogfrac 75 0 100
rsshogslop 20
dwcluster 64
autoup 10 1 30
*
* tunables for buffer cache
*
* nbuf: number of buffers in disk buffer cache. autoconfigure if 0
*
* nbuf auto-config: max(100+KB(mem)/160,6000)
bufcache: static
* name default minimum maximum
nbuf 0 75 6000
*
* tunables for module loader
*
* bdevsw_extra: number of extra entries for bdevsw
* cdevsw_extra: number of extra entries for cdevsw
* fmodsw_extra: number of extra entries for fmodsw
* vfssw_extra: number of extra entries for vfssw
*
mload: static
* name default minimum maximum
bdevsw_extra 21 1 254
cdevsw_extra 23 3 254
fmodsw_extra 20 0
vfssw_extra 5 0
*
* tunables for spinlock pools
*
* R3000-based multiprocessor machines have a limited number of
* MPBUS hardware locks. To reduce the possibility of spinlock
* depletion, groups of spinlocks use shared pools of locks in
* a many-to-one mapping. Users of a spinlock pool must never
* nest (or must take precautions when nesting).
*
* sema_pool_size: number of spinlocks pooled for all semaphores
* vnode_pool_size: number of spinlocks pooled for vnodes
* file_pool_size: number of spinlocks pooled for file structs
*
splock_pool: static
* name default minimum maximum
sema_pool_size 8192 1024 16384
vnode_pool_size 1024 512 2048
file_pool_size 1024 512 2048
*
* SGI internal use
*
* histmax: semaphore history
* conbufsz: console buffer sizes
* putbufsz: put buffer sizes
* dumplo: starting default offset in dumpdev to dump kernel when it crashes
* smeterhash: # of hash buckets for semaphore metering structures;
* if set, will be rounded up to power-of-two
* mrmeterhash: # of hash buckets for multi-reader lock metering structures;
* if set, will be rounded up to power-of-two
*
internal: static
* name default minimum maximum
histmax 0
conbufsz 1024
putbufsz 1024
dumplo 0
smeterhash 0 0 65536
mrmeterhash 0 0 1024